﻿using System;

/// <summary>
/// 协议文件，自定义协议
/// </summary>
public class Protocol
{
    public const int Login_CMD = 10000;
    public const int SelfLogin_CMD = 10010;
    public const int PlayerPosition_CMD = 10011;
    public const int PlayerLogOut = 10012;
    public const int PlayerRepeatExit = 10013;//用户已经存在

    public const int PlayerReady_CMD = 10014;
    public const int ReadyGoToGame_CMD = 10015;//全部准备，进入游戏
    public const int OtherPlayerInfo_CMD = 10016;


    public const int Register_CMD = 10001;
    public const int PlayerMove_CMD = 10002;
    public const int PlayerDead_CMD = 10003;


    public const int PlayerFire_CMD = 10004;
    public const int PlayerOnHit_CMD = 10005;

    public const int PlayerWin_CMD = 10006;//玩家最终胜利


    public const int HeartBeat = 20000;//心跳


    public const int UserRegister_CMD = 12001;
    public const int UserLogin_CMD = 12002;

    public const int Errer_CMD = 30000;//错误协议

}
